package org.thss.petri.gef.editparts.policies;

import org.eclipse.gef.commands.Command;
import org.eclipse.gef.editpolicies.ConnectionEditPolicy;
import org.eclipse.gef.requests.GroupRequest;
import org.thss.petri.gef.commands.DeleteArcCommand;
import org.thss.petri.model.Arc;

public class ArcEditPolicy extends ConnectionEditPolicy {

	@Override
	protected Command getDeleteCommand(GroupRequest request) {
		DeleteArcCommand command = new DeleteArcCommand();
		command.setConnection((Arc) getHost().getModel());
		return command;
	}

}
